<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::group('yuql', function () {

    Route::post('login', 'yuql.Login/login');  //登录
    Route::get('article/index', 'yuql.Article/index');  //文章列表
    Route::post('article/create', 'yuql.Article/create');  //文章添加
    Route::post('article/update', 'yuql.Article/update');  //文章修改
    Route::get('article/detail', 'yuql.Article/detail');  //文章详情
    Route::get('article/delete', 'yuql.Article/delete');  //文章删除


    Route::post('wxlogin', 'yuql.Wxlogin/login');  //微信登录
    Route::post('smsSend', 'yuql.Wxlogin/smsSend');  //验证码
    Route::post('register', 'yuql.Wxlogin/register');  //注册用户
    Route::post('userSetPwd', 'yuql.Wxlogin/userSetPwd');  //设置密码


    Route::get('goodsList', 'yuql.Seckill/goodsList');  //秒杀商品列表
    Route::post('goodsAdd', 'yuql.Seckill/goodsAdd');  //秒杀商品添加
    Route::get('goodsDetail', 'yuql.Seckill/goodsDetail');  //秒杀商品详情
    Route::get('goodsOrder', 'yuql.Seckill/goodsOrder');  //秒杀商品订单


    Route::get('getGoodsOrder', 'yuql.Alipay/getGoodsOrder');  //支付获取订单
    Route::get('web', 'yuql.Alipay/web');  //支付
    Route::get('returnPay', 'yuql.Alipay/returnPay');  //返回支付结果
    Route::get('notify', 'yuql.Alipay/notify');  //支付系统信息

    Route::get('fieryGoods', 'yuql.Fiery/fieryGoods');  //热销商品推荐


    Route::get('rebate', 'yuql.Distribution/rebate');  //佣金
    Route::get('rankingList', 'yuql.Distribution/rankingList');  //排行榜


    Route::get('bargain', 'yuql.Bargain/bargain');  //商品砍价

    Route::get('houseAdd', 'yuql.SearchHouse/houseAdd');  //房源添加
    Route::get('searchHouse', 'yuql.SearchHouse/searchHouse');  //搜索房源


});
